import Vue from 'vue'
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

import App from './App.vue'
import router from './router'

Vue.config.productionTip = false

//引入axios npm i axios
import axios from 'axios'
//Vue对象使用axios
Vue.prototype.axios = axios;

//导入组件库 npm i element-ui -S
import ElementUI from 'element-ui'
//导入组件相关样式
import 'element-ui/lib/theme-chalk/index.css'

import { Swipe, SwipeItem } from 'vant-green';
Vue.use(Swipe).use(SwipeItem);

//配置Vue插件 将El安装到Vue上
Vue.use(ElementUI);


import { TextBox } from 'vant-green';
Vue.use(TextBox);
import { NavBar } from 'vant-green';

Vue.use(NavBar);

import { Icon } from 'vant-green';

Vue.use(Icon);


//星星
import { Rate } from 'vant-green';
Vue.use(Rate);

//Image图片
import { Image } from 'vant-green';
Vue.use(Image);

import { Result } from 'vant-green';

Vue.use(Result);




new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
